#define _CRT_SECURE_NO_WARNINGS
#include<stdio.h>

int main()

{

	int line;

	scanf("%d", &line);

	int j, i;

	for (i = 1;i <= line;i++)

	{

		for (j = 0;j < line - i;j++)

		{

			printf(" ");

		}

		for (j = 0;j < 2 * i - 1;j++)

		{

			printf("*");

		}

		printf("\n");

	}

	for (i = 0;i < line - 1;i++)

	{

		for (j = 0;j < i + 1;j++)

		{

			printf(" ");

		}

		for (j = 0;j < line  - 2 * i;j++)

		{

			printf("*");

		}

		printf("\n");

	}

	return 0;

}